Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow applying the tooltip to a specific layer #1399

Closed
wants to merge 3 commits into from

Conversation

silvester-pari
Copy link
Collaborator

@silvester-pari silvester-pari commented Nov 27, 2024

Implemented changes

This introduces an option to provide a layer id for the eox-map tooltip. By default the tooltip renders for the topmost interaction layer, but can be set to specifically render for one layer:

<eox-map-tooltip for="my-vector-layer"></eox-map-tooltip>

Related to #1358, #594

Screenshots/Videos

Screencast.from.2024-11-27.15.36.32.webm

Checklist before requesting a review

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for eoxelements ready!

Name Link
🔨 Latest commit 7ab6b50
🔍 Latest deploy log https://app.netlify.com/sites/eoxelements/deploys/674db540920206000861703d
😎 Deploy Preview https://deploy-preview-1399--eoxelements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@silvester-pari silvester-pari marked this pull request as ready for review December 2, 2024 13:27
Copy link
Member

@StefanBrand StefanBrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward, but I cannot comment on the implementation. I'm just commenting on the API.

@@ -8,6 +8,7 @@ export class EOxMapTooltip extends LitElement {
static get properties() {
return {
feature: { attribute: false, property: true, type: Object },
for: { attribute: "for", property: true, type: String },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually for is used for DOM specifiers. Maybe we should use a different property for the layer ID.

@silvester-pari silvester-pari marked this pull request as draft December 9, 2024 10:50
@silvester-pari
Copy link
Collaborator Author

Closing in favor of #1409

@silvester-pari silvester-pari deleted the map/feat/apply-tooltip-to-layer-id branch December 12, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants